<template>
  <div id="app">
    <audio loop controls>
      <source src="https://api.bbbug.com/api/song/playurl?mid=75897710" />
      <source src="https://api.bbbug.com/api/song/playurl?mid=164674" />
      <source src="https://api.bbbug.com/api/song/playurl?mid=156498" />
    </audio>
    <router-view></router-view>
  </div>
</template>
<script>
import { search, songList, mySongList, addSong } from "@/api/search/index";

export default {
  data() {
    return {
      show: true,
      alreadylist: [],
    };
  },
  created() {
    songList({
      room_id: localStorage.getItem("room_id"),
      plat: "pc",
      version: 10000,
    }).then((res) => {
      console.log(res);
      this.alreadylist = res.data;
    });
  },
};
</script>
<style lang="less">
audio {
  height: 50px;
  position: relative;
  z-index: 999;
  width: 500px;
  margin: 0 auto;
}
body,
html {
  background: url("./assets/bg_dark.jpg") no-repeat;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  box-sizing: border-box;
  position: relative;
  border-radius: 24px;
  width: 1520px;
  height: 800px;
  background-color: rgba(255, 255, 255, 0.9);
  // box-shadow: 0 0 5px 5px rgb(36, 36, 36);
  margin: 60px auto;
}

p,
h3,
h4 {
  margin: 0;
  padding: 0;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bg_img {
  position: absolute;
  left: 0;
  top: 0;
}
#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
ul::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}

ul::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #ff6700;
}

ul::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  // box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background: #ededed;
}

.message-con::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}

.message-con::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #ff6700;
}

.message-con::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background: #ededed;
}
</style>

<script>
export default {
  created() {
    localStorage.setItem(
      "access_token",
      "c3711801296cd86773c21c740ef8b3a75d56faad99999c3711801296cd86773c21c740ef8b3a75d56faad"
    );
  },
};
</script>
